package javase0825;

import java.util.Objects;

public class Demo01 {
    private int n;
    public static void main(String[] args) {

    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Demo01 demo01 = (Demo01) o;
        return n == demo01.n && f == demo01.f;
    }

    @Override
    public int hashCode() {
        return Objects.hash(n);
    }

    public int getN() {
        return n;
    }

    public void setN(int n) {
        this.n = n;
    }
    private boolean f;

    public boolean isF() {
        return f;
    }

    public void setF(boolean f) {
        this.f = f;
    }
}
